'use strict';

module.exports = appInfo => {
  const config = exports = {
    mysql: {
      // database configuration
      client: {
        // host
        host: 'localhost',
        // port
        port: '3306',
        // username
        user: 'root',
        // password
        password: '180236',
        // database
        database: 'test',
      },
      // load into app, default is open
      app: true,
      // load into agent, default is close
      agent: false,
    },
    security: {
      // 关闭csrf防范
      csrf: {
        enable: false,
      },
    }

  };

  // use for cookie sign key, should change to your own and keep security
  config.keys = appInfo.name + '_1512032657443_1540';

  // add your config here
  config.middleware = [];

  return config;
};
